﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABCat.Shared
{
	public enum ExceptionTypeEnum
	{
		Info,
		Warning,
		Stop
	}

	public class ABCatException : Exception
	{
		public ExceptionTypeEnum ExceptionType { get; private set; }
		public bool Log { get; private set; }

		public ABCatException(string message, ExceptionTypeEnum exceptionType, Exception innerException, bool log =true)
			: base(message, innerException)
		{
			ExceptionType = exceptionType;
			Log = log;
		}
	}
}